import { Entity, Column, PrimaryGeneratedColumn, UpdateDateColumn, ManyToOne, JoinColumn } from 'typeorm';
import { AdPosition } from "./ad_position.entities";
import { ApiProperty} from '@nestjs/swagger';
import { IsOptional } from 'class-validator';

@Entity()
export class Feedback {
  @PrimaryGeneratedColumn({type: 'mediumint'})
  msg_id: number;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'mediumint' })
  user_id:number;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar' ,length: 60 })
  user_name: string;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar' ,length: 60 })
  mobile: string;

  @IsOptional()
  @ApiProperty()
  @Column({type:"tinyint"})
  feed_Type: number;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'text'})
  content: string;

  @IsOptional()
  @ApiProperty()
  @Column({type:"tinyint"})
  status: number;

  @IsOptional()
  @ApiProperty()
  @Column({type:"timestamp"})
  @UpdateDateColumn()
  add_time: Date;
}
